<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 变量初始化
        var name = 'dimingda'
        var age = 18;
        var add = '辽宁朝阳'
        alert(age)
        alert(name)
        alert(add)
    </script>
    <script>
        // 做个简单的例子
        var name = prompt('输入姓名')
        alert(name)
    </script>
</head>
<body>
    
</body>
</html>